from keymanager import KeyManager
from fileproc import FileProc


class DS(object):

    def __init__(self, key):
        manager = KeyManager(key)
        key = manager.getKey()
        self.proc = FileProc(key)

    def put_file(self, filename):
        self.proc.put(filename)

    def get_file(self, filename):
        self.proc.get(filename)

    def list_files(self):
        files = self.proc.list()
        for f in files:
            print f[0]
